/**
 * 
 */
package com.yidu.erp.service.jihua;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yidu.erp.dao.BeyondProdesignMapper;
import com.yidu.erp.model.BeyondProdesign;

/**
 * 生产计划实现接口类
 * @author hujiaqian
 *
 * 2017年10月24日
 */
@Service
public class BeyondProdesignServiceImpl implements BeyondProdesignService{
	
	@Resource
	private BeyondProdesignMapper beyondProdesignMapper;
	
	@Override
	public int deleteByPrimaryKey(String designId) {
		// TODO Auto-generated method stub
		return beyondProdesignMapper.deleteByPrimaryKey(designId);
	}

	
	
	@Override
	public int insertSelective(BeyondProdesign record) {
		// TODO Auto-generated method stub
		return beyondProdesignMapper.insertSelective(record);
	}

	
	@Override
	public BeyondProdesign selectByPrimaryKey(String designId) {
		// TODO Auto-generated method stub
		return beyondProdesignMapper.selectByPrimaryKey(designId);
	}

	
	@Override
	public int updateByPrimaryKeySelective(BeyondProdesign record) {
		// TODO Auto-generated method stub
		return beyondProdesignMapper.updateByPrimaryKeySelective(record);
	}

	
	@Override
	public Map<String, Object> selectAll(Map<String, Object> param) {
		// TODO Auto-generated method stub
		Map<String, Object> map = new HashMap<String, Object>();//new一个Map集合
		map.put("data", beyondProdesignMapper.selectAll(param));//查询所有的方法
		map.put("count", beyondProdesignMapper.selectAllRowCount(param));//返回所有行
		map.put("code", 0);//layui接受格式
		map.put("msg", 0);//layui接受格式
		return map;//返回map
	}

	@Override
	public int updateBy(BeyondProdesign record) {
		// TODO Auto-generated method stub
		return beyondProdesignMapper.updateBy(record);
	}

}
